
package toster;

import java.util.Vector;

/**
 *Takes the two arrays and tries to get a match by throwing them at each other
 * @author zach
 */
public class Colider {

/**
 *
 * @param horz
 * @param vert
 * @return the index of the first found match in 2 arrays
 * 
 */
    public boolean[][] Do(Vector<boolean[][]> horz,Vector<boolean[][]> vert){
        
        for(int i=0;i<horz.size();i++){
            for(int j=0;j<vert.size();j++)
            if(horz.get(i)==vert.get(j)){
                return horz.get(i);
            }
        }

        return null;
    }
}